import { ActionType } from '../reducer/todo';

export const delAction = (id: number): ActionType => ({
  type: 'todo/delById',
  payload: id,
});

// 2. 定义action创建函数
export const clearAction = (): ActionType => ({
  type: 'todo/clearDone',
});
